package cn.njxzc.examples;

interface A22 {
	public void mA();
}

interface B22 {
	public void mB();
}

abstract class C22 {
	abstract public void mC();
}

class D22 extends C22 implements A22, B22 {
	public void mA() {
		System.out.println("A");
	}

	public void mB() {
		System.out.println("B");
	}

	public void mC() {
		System.out.println("C");
	}
}

public class Exam3_22 {
	public static void main(String[] args) {
		Exam3_22 i = new Exam3_22();
		D22 d = new D22();
		i.method1(d);
		i.method2(d);
		i.method3(d);
	}

	public void method1(A22 a) {
		a.mA();
	}

	public void method2(B22 b) {
		b.mB();
	}

	public void method3(C22 c) {
		c.mC();
	}

}